import { TOKEN_KEY } from "@/constants";
import Cookies from "js-cookie";

export const getLocalToken = () => {
  // return localStorage.getItem(TOKEN_KEY)
  return Cookies.get(TOKEN_KEY);
};

export const setLocalToken = (token: string) => {
  // localStorage.setItem(TOKEN_KEY, token);
  Cookies.set(TOKEN_KEY, token);
};

export const removeLocalToken = () => {
  // localStorage.removeItem(TOKEN_KEY);
  Cookies.remove(TOKEN_KEY);
};
